package com.aspose.cells;

class zpb {
   com.aspose.cells.b.a.d.zh a;
   private boolean b = false;

   boolean a() {
      return this.b;
   }

   zpb(com.aspose.cells.b.a.d.zh var1) {
      this.a = var1;
   }

   int a(byte[] var1) throws Exception {
      if (this.b) {
         throw new Exception("End of stream reached.");
      } else {
         int var2 = this.a.a(var1, 0, var1.length);
         if (var2 < var1.length) {
            this.b = true;
         }

         return var2;
      }
   }

   int b(byte[] var1) throws Exception {
      if (this.b) {
         throw new Exception("End of stream reached.");
      } else {
         int var2 = this.a.a(var1, 0, 2);
         if (var2 < 2) {
            this.b = true;
         }

         return com.aspose.cells.b.a.zc.e(var1, 0);
      }
   }

   void a(int var1) throws Exception {
      this.a.a((long)var1, 1);
   }

   long b() throws Exception {
      return this.a.i();
   }
}
